package com.example.demo.openClose;

/**
 * Created by Easettle
 * Date:2020/6/17 23:11
 * Email:easettle@qq.com
 * java课程
 */
public class JavaCourse implements ICourse{

    private String name;
    private Integer id;
    private Double price;

    public JavaCourse(String name, Integer id, Double price) {
        this.name = name;
        this.id = id;
        this.price = price;
    }

    @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }

}
